const db = wx.cloud.database()
Page({
  data: {
    myorder_list:[]
  },

  onLoad: function (options) {
    var phone = wx.getStorageSync('phone');
    db.collection('order').where({
      phone: phone
    }).orderBy('submitorder','desc').get().then(res => {
      console.log(res.data)
      this.setData({
        myorder_list: res.data,
        phone: phone
      })
    })
  },

})